﻿using System;
using WpfApp1.Models;

namespace WpfApp1.ViewModels {
    public class AppointmentViewModel {
        private Appointment _Appointment;

        public AppointmentViewModel(Appointment appointment) {
            _Appointment = appointment;
        }

        public int Id { get=>_Appointment.Id; }
        public DateTime Time { 
            get=>_Appointment.Time;
            set {
                if(value != _Appointment.Time) {
                    _Appointment.Time = value;
                }
            }
        }
    }
}